package com.cxso.example.request.wlpt;

import com.cxso.example.enums.wlpt.ReceiptComplianceStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;


@Setter
@Getter
@Schema(description = "运单签收")
public class ApiConsignorWaybillSignReq extends ApiBaseReq {

    @Schema(description = "运单ID（运单ID和运单编号二选一必填）")
    private String id;

    @Schema(description = "运单编号（运单ID和运单编号二选一必填）")
    private String billCode;

    @Schema(description = "回单签收状态", example = "RECEIPT_YES")
    @NotNull(message = "回单签收状态不能为空")
    private ReceiptComplianceStatusEnum receiptComplianceStatus;

    @Schema(description = "是否支付回单押金", example = "true")
    @NotNull(message = "是否支付回单押金不能为空")
    private Boolean isPayReceiptAmount;

    @Schema(description = "备注（不支付回单押金时必填）")
    private String remark;

}
